﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;
using GBG_DBM.Support.DAL.Entities;

namespace GBG_DBM.Support.DAL.DB
{
    public class CurrencyDB
    {
        private DAO _DAO = new DAO();
        public DataTable getCurrencies() 
        {
            OleDbCommand OleDb = new OleDbCommand("SELECT * from [CUR EXCH]");
            return _DAO.GetDataTable(OleDb);
        }
		public DataTable getCurrency(string Currency) 
		{
			OleDbCommand OleDb = new OleDbCommand("SELECT * from [CUR EXCH] where Currency_Code='" + Currency + "'");
			return _DAO.GetDataTable(OleDb);
		}
    }
}
